package cn.edu.sptc.sms_lichaoping.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;

@Data
@Schema(description = "学生实体类（请求体/响应体共用）")
public class Student {

    @Schema(description = "学生ID，自动新增", example = "1", required = true)
    private Long id;

    @Schema(description = "所属专业ID，关联专业表", example = "1", required = true)
    private Long majorId;

    @Schema(description = "学生姓名", example = "张三", required = true)
    private String name;

    @Schema(description = "学生性别", example = "男", allowableValues = {"男", "女"}, required = true)
    private String sex;

    @Schema(description = "创建时间，系统自动添加")
    private Date createTime;

    @Schema(description = "更新时间，系统自动更新")
    private Date updateTime;
}